package com.shuaige.leaning.shiro.config;

import org.apache.shiro.authc.UsernamePasswordToken;

public class JWTToken extends UsernamePasswordToken {

    // 密钥
    private String token;

    public JWTToken(String token) {
        this.token = token;
    }

    /**
     * 账号
     */
    @Override
    public Object getPrincipal() {
        return token;
    }

    /**
     * 密码
     */
    @Override
    public Object getCredentials() {
        return token;
    }
}